package com.woniuxy.charin.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.charin.model.dto.RefundRequestDto;
import com.woniuxy.charin.model.entity.ChargingRecords;
import com.woniuxy.charin.model.vo.ChargingRecordsVo;

import java.util.Map;

/**
* @author Administrator
* @description 针对表【charging_records(充电记录表)】的数据库操作Service
* @createDate 2024-12-24 10:20:38
*/
public interface ChargingRecordsService extends IService<ChargingRecords> {

    /**
     * 添加充电记录
     * @param chargingRecord 充电记录对象
     * @return 是否添加成功
     */
    boolean addChargingRecord(ChargingRecords chargingRecord);

    ChargingRecords createChargingRecord(String orderNumber);

    Page<ChargingRecordsVo> getChargingRecords(Map<String, Object> queryParams, int pageNum, int pageSize);


    boolean submitRefund(String orderNumber, String refundDescription, Double refundAmount);

    ChargingRecordsVo getChargingRecordById(Long id);

    boolean processRefund(String orderNumber, String processDescription);
}
